No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I want to write a script that logs an user into Facebook and initialize oauth dialog to get the access_token(*I don't want to log in into a website using facebook account!*). I don't want to use facebook-sdk,pyfb etc. This is what I've tried: import sys, urllib2,json,urlparse,webbrowser, os, cookielib, re class … |
|
Hello, I have this functions: main(), menu1(),menu2() and so on. Main function takes an input and call one of the menu() functions so ... menu1(),menu2() functions needs to be defined before the main() function. The problem appears when i want to call the main() function inside one of the menu() … |
|
I have this example: [CODE]use warnings; use strict; open LYNX, "lynx –source http://www.perl.com/ |" or die "Can't open lynx: $!"; # Define $_ and skip through LYNX until a line containing "standard.def" $_ = ""; $_ = <LYNX> until /standard\.def/; # The headline is in the following line: my $head … |
|
Re:
am trying to open a file but the problem is on the third line (open...) sub open_file { local $/ = undef; ($filevar, $filemode, $filename) = @_; open ($filevar, $filemode . $filename) || die ("Can't open $filename"); } everytime i run it i get the error: Can't use string ("FILE1") … |